package com.swt.testdemo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.swt.testdemo.entity.SysDataLawEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/16 15:36
 **/
@Mapper
@Repository
public interface SysDataLawDao extends BaseMapper<SysDataLawEntity> {
    IPage<SysDataLawEntity> queryDataLawList(Page<SysDataLawEntity> entityPage,
                                             @Param(value = "titleFilter") String titleFilter,
                                             @Param(value = "templateIdFilter") Integer templateIdFilter,
                                             @Param(value = "publishStartDateFilter") String publishStartDateFilter,
                                             @Param(value = "publishEndDateFilter") String publishEndDateFilter,
                                             @Param(value = "publishDeptFilter") String publishDeptFilter,
                                             @Param(value = "implementStartDateFilter") String implementStartDateFilter,
                                             @Param(value = "implementEndDateFilter") String implementEndDateFilter);

    SysDataLawEntity queryDataLawByUrl(@Param(value = "lawSourceUrl") String lawSourceUrl);
}
